//
//  AFNManger.h
//  Loan
//
//  Created by hejinhui on 2017/11/7.
//  Copyright © 2017年 hejinhui. All rights reserved.
//

typedef enum : NSUInteger {
    
    HttpRequestTypeGet,
    HttpRequestTypePost
    
} HttpRequestType;

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
@interface AFNManger : NSObject

+(AFNManger *)shareRequsetMangager;

-(void)requsetUrlType:(HttpRequestType)type
                  url:(NSString *)url
               params:(id)parmas
         successBlock:(void(^)(NSDictionary *dic))success
            failBlock:(void(^)(NSError * error))fail;

@end
